// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System;

namespace NSQL.Expressions.Functions
{
    /// <summary>
    /// stddev() function returns the population standard deviation of expression.
    /// </summary>
    public class StdDevFunction : BaseExpression, IStdDevFunction
    {
        public IValueExpression Expr { get; set; }

        public AggregateType Type => throw new NotSupportedException();

        public StdDevFunction(IValueExpression expression) => Expr = expression;

        public override T Accept<T>(IExpressionVisitor<T> visitor) => visitor.Visit(this);
    }
}